export interface FieldValue {
  value: string
  fieldId: number
}

export interface LedgerRecord {
  ledgerId: number
  recordId: number
  userId: number
  userName: string
  fields: {
    [fieldName: string]: FieldValue
  }
}

export interface ColumnMeta {
  prop: string
  label: string
}

export interface LedgerData {
  rows: LedgerRecord[]
  columns: ColumnMeta[]
}

export interface ApiResponse<T = any> {
  code: number
  message: string
  data: T
}
